import sqlite3

conn = sqlite3.connect('niit.sqlite')
cur = conn.cursor()
sql_query = "select * from student"
data = cur.execute(sql_query)
for item in data:
    print("学号：", item[0], "姓名：", item[1], "年龄：", item[2])

conn.close()
